home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / billacct / 10860e01.ziv / OASIS2.EXE / INSTALLA.BAT < prev    next >
DOS Batch File  |  1994-03-08  |  7KB  |  159 lines

  1. Echo Off
  2. REM ******************************************************
  3. REM * File   : Install.bat
  4. REM * Author : Stephen Williams
  5. REM * Date   : Sept. 3, 1992
  6. REM * Revised: Mar 8, 1994
  7. REM * Purpose: Installation - OASIS Ver 2.x
  8. REM ******************************************************
  9. if "%1" == ""    goto help
  10. if "%1" == "?"   goto help
  11. if "%1" == "A:"  goto help
  12. if "%1" == "a:"  goto help
  13. if "%1" == "B:"  goto help
  14. if "%1" == "b:"  goto help
  15. if "%1" == "A"   goto help
  16. if "%1" == "a"   goto help
  17. if "%1" == "B"   goto help
  18. if "%1" == "b"   goto help
  19.  
  20. for %%f in (C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1.==%%f. goto Help
  21. for %%f in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:) do if %1.==%%f. goto Help
  22. for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:) do if %1.==%%f. goto Help
  23. for %%f in (X:,x:,Y:,y:,Z:,z:)                         do if %1.==%%f. goto Help
  24.  
  25. REM **************************
  26. REM HARD DISK INSTALLATION
  27. REM **************************
  28. if not exist %1:\nul goto help
  29. if not exist OASIS_EX.EXE goto BadDef
  30. if not exist OASIS_DB.EXE goto BadDef
  31. if not exist README.OAS goto BadDef
  32. CLS
  33. Echo ┌──────────────────────────────────────────────────────┐ 
  34. Echo │                                                      │
  35. Echo │                   OASIS INSTALLATION                 │
  36. Echo │                                                      │
  37. Echo │      Install Main Program & Help Files on %1:\OWL     │
  38. Echo │                                                      │
  39.  
  40. if exist %1:\OWL\OASIS.EXE goto ExistEXE
  41. if exist %1:\OWL\OAHELP.DBF goto ExistEXE
  42. if exist %1:\OWL\OAHELP.DBT goto ExistEXE
  43. if exist %1:\OWL\OASIS.ICO goto ExistEXE
  44. if exist %1:\OWL\OASIS2.DBF goto ExistEXE
  45. if exist %1:\OWL\ORDERA.DOC goto ExistEXE
  46.  
  47. :InsMain
  48. Echo └──────────────────────────────────────────────────────┘
  49. Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
  50. OASIS_EX %1:\OWL
  51. CLS
  52. Echo ┌──────────────────────────────────────────────────────┐ 
  53. Echo │                                                      │
  54. Echo │                   OASIS INSTALLATION                 │
  55. Echo │                                                      │
  56. Echo │        Installing Sample Data Files on %1:\OWL        │
  57. Echo │                                                      │
  58.  
  59. if exist %1:\OWL\CUST2.DBF goto ExistDat
  60. if exist %1:\OWL\CUST2.DBT goto ExistDat
  61. if exist %1:\OWL\GROUPS.DBF goto ExistDat
  62. if exist %1:\OWL\INV.DBF goto ExistDat
  63. if exist %1:\OWL\INV.DBT goto ExistDat
  64. if exist %1:\OWL\ITM.DBF goto ExistDat
  65. if exist %1:\OWL\PMT.DBF goto ExistDat
  66. if exist %1:\OWL\PROD.DBF goto ExistDat
  67. if exist %1:\OWL\PROD.DBT goto ExistDat
  68. if exist %1:\OWL\LABDEF.DBF goto ExistDat
  69. if exist %1:\OWL\PRDEF2.DBF goto ExistDat
  70.  
  71. :InsDat
  72. Echo └──────────────────────────────────────────────────────┘
  73. Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
  74. OASIS_DB %1:\OWL
  75. COPY README.oas %1:\OWL\README.oas
  76. %1:
  77. CD \OWL
  78. goto End
  79.  
  80. :ExistEXE
  81. Echo │ IMPORTANT: Program already exists on your system.    │
  82. Echo │                                                      │
  83. Echo │ When Prompted:   Overwrite [Y/N]                     │
  84. Echo │                                                      │
  85. Echo │ Press Y if you are upgrading from an earlier version │
  86. Echo │ or want to reinstall the program.                    │
  87. Echo │                                                      │
  88. Echo │ Press N to retain your existing program & help files.│
  89.  
  90. goto InsMain
  91.  
  92. :ExistDat
  93. Echo │ IMPORTANT: Data files already exist on your system.  │
  94. Echo │                                                      │
  95. Echo │ When Prompted:   Overwrite [Y/N]                     │
  96. Echo │                                                      │
  97. Echo │ Press N to retain your existing data files.          │
  98. Echo │                                                      │
  99. Echo │ Press Y to replace your existing data files with the │
  100. Echo │ sample data files.                                   │
  101.  
  102. goto InsDat
  103.  
  104. :BadDef
  105. CLS
  106. Echo ┌────────────────────────────────────────────────────────────────┐
  107. Echo │              OASIS 2.X  -  Installation HELP                   │
  108. Echo │                                                                │
  109. Echo │ INSTALLA must be run from the drive where INSTALLA.BAT resides │
  110. Echo │                                                                │
  111. Echo │ If you are installing OASIS from a floppy disk in drive A      │
  112. Echo │ type "A:" before running INSTALLA.                             │
  113. Echo │                                                                │
  114. Echo │ Example:    A:            (Set Default To Drive A)             │
  115. Echo │             INSTALLA C    (Install Program on drive C)         │
  116. Echo │                                                                │
  117. Echo │                   PROGRAM NOT INSTALLED                        │
  118. Echo └────────────────────────────────────────────────────────────────┘
  119. goto bad_end
  120. :Help
  121. Cls
  122. Echo ┌────────────────────────────────────────────────────────────────┐
  123. Echo │                OASIS 2.X  -  Installation HELP                 │
  124. Echo │                                                                │
  125. Echo │                                                                │
  126. Echo │ OASIS must be installed on a HARD DISK DRIVE.                  │
  127. Echo │                                                                │
  128. Echo │ The install program decompresses archive files and copies them │
  129. Echo │ to subdirectory \OWL on the designated hard disk drive.  If    │
  130. Echo │ \OWL does not exist on the designated hard disk, it will be    │
  131. Echo │ created for you.                                               │
  132. Echo │                                                                │
  133. Echo │ Syntax for the command is:  INSTALLA d                         │
  134. Echo │                                                                │
  135. Echo │        where "d" is the hard disk drive letter where you want  │
  136. Echo │        the program installed.                                  │
  137. Echo │                                                                │
  138. Echo │ Examples:  INSTALLA C   (Note no colon is typed)               │
  139. Echo │            INSTALLA D                                          │
  140. Echo │            etc.                                                │
  141. Echo │                                                                │
  142. Echo │                   PROGRAM NOT INSTALLED                        │
  143. Echo └────────────────────────────────────────────────────────────────┘
  144. goto bad_end
  145. REM ************************
  146. REM End Of OASIS Installation
  147. REM ************************
  148. :end
  149. CLS
  150. Echo ┌──────────────────────────────────────────────────────┐
  151. Echo │            OASIS HAS BEEN INSTALLED ON %1:\OWL        │
  152. Echo │                                                      │
  153. Echo │                To run OASIS type "OASIS"             │
  154. Echo │                                                      │
  155. Echo │  Please review file README.OAS for important infor-  │
  156. Echo │  mation on configuring your system.                  │
  157. Echo └──────────────────────────────────────────────────────┘ 
  158. :bad_end
  159.